#1参是镜像名称
#2参是镜像URL的变量名
source_menu__mirrors_select(){
    input "请选择${1}镜像站
[1]华为源(建议)
[2]腾讯源
[3]阿里源
[4]网易源
[5]中国科技技术大学" URL_select
    if [[ "$URL_select" == '1' ]];then
    	URL='https://mirrors.huaweicloud.com'
        mirrors_name='华为源'
    elif [[ "$URL_select" == '2' ]];then
    	URL='https://mirrors.cloud.tencent.com'
        mirrors_name="[ 腾讯源 ]"
    elif [[ "$URL_select" == '3' ]];then
        URL='https://mirrors.aliyun.com'
        mirrors_name="[ 阿里源 ]"
    elif [[  "$URL_select" == '4' ]];then
    	URL='https://mirrors.huaweicloud.com'
        mirrors_name="[ 网易源 ]"
    elif [[  "$URL_select" == '5' ]];then
    	URL='https://mirrors.ustc.edu.cn'
        mirrors_name="[ 华为源 ]"
    else
        URL='https://mirrors.huaweicloud.com'
        mirrors_name='华为源'
    fi
    eval `echo -e "$2=$URL"`
    red_z_green_z "${1}镜像源已选择:" "[ $mirrors_name ]"
}
#mariadb源版本选择
source_menu__mariadb_version_select(){
    input '请选择一个MariaDB版本(序号):
[1]最新版(默认)
[2]10.2
[3]10.3
[4]10.4
[5]10.5' mariadb_version
    if [[ "$mariadb_version" == '2' || "$mariadb_version" == '3' || "$mariadb_version" == '4' ]];then
        case $mariadb_version in
            '1') mariadb_version=10.5
                ;;
            '2') mariadb_version=10.2
                ;;
            '3') mariadb_version=10.3
                ;;
            '4') mariadb_version=10.4
                ;;
        esac
        red_z_green_z "已选择:" "[ $mariadb_version ]"
    else
        input_check "$mariadb_versions" "Mariadb源配置版本选择" "10.5" "mariadb_version"
    fi
}